package org.jeecg.modules.htxincailiao.order.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.htxincailiao.order.entity.HTOrderGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: ht_order_goods
 * @Author: jeecg-boot
 * @Date:   2021-11-10 14:36:13
 * @Version: V1.0
 */
public interface HTOrderGoodsMapper extends BaseMapper<HTOrderGoods> {

    @Select("<script>" +
            "SELECT * FROM ht_order_goods WHERE order_id=#{orderId}" +
            "</script>")
    List<HTOrderGoods> findAllByOrderId(@Param("orderId") String orderId);

    @Select("<script>" +
            "SELECT * FROM ht_order_goods WHERE shop_id=#{shopId}" +
            "</script>")
    List<HTOrderGoods> findAllByShopId(@Param("shopId") String shopId);
}
